
// import query from '@feidao/web/atom/nodejs/db/query';
import query from '@dfeidao/atom-nodejs/db/query';
interface Message {
	filter: { productid: string };
}

// 查询数据(角色类型)
export default async function atom(msg: Message, action_id: string, session_id: string) {
	const systemid = '11';
	const { exec, prepare } = query(action_id, session_id, systemid);
	prepare('pub_systemid', ['systemid'], msg.filter, 100, 1, [], []);
	const [data] = await exec();
	return { dataArray: data };
}
